package com.dalin.platform.loa.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-07                                                     *
 * @modDate: 2010-06-07                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class LoaOrganizationCondition extends Condition{
    private Long parentId; // PARENT_ID,16,0
    private Long projectId; // PARENT_ID,16,0
    private String organName; // ORGAN_NAME,256,0
    private String description; // DESCRIPTION,256,0
    private Integer flagDel = 1; // VALID,2,0


    public LoaOrganizationCondition prepareParams() {
        setBaseQueryStr("from LoaOrganizationEntity h");
        setParam("h.projectId", "=", projectId);
        setParam("h.organName", "like", "%" + organName + "%");
        setParam("h.parentId", "=", parentId);
        setParam("h.description", "like", "%" + description + "%");
        setParam("h.flagDel", "=", flagDel);
        setOrderBy("h.orderNumber asc");
        return this;
    }


	public String getOrganName() {
		return organName;
	}
	public void setOrganName(String organName) {
		this.organName = organName;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getFlagDel() {
		return flagDel;
	}
	public void setFlagDel(Integer flagDel) {
		this.flagDel = flagDel;
	}
	public Long getProjectId() {
		return projectId;
	}
	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}
}
